#include <QApplication>
#include "window.h"
#include "dsingleapplication.h"
//
int main(int argc, char ** argv)
{
	QApplication app( argc, argv );
	//Q_INIT_RESOURCE(alarm);
	 DSingleApplication instance( "ALARM" );
  
	  if ( instance.isRunning() ) {
	    instance.sendMessage( "Hey, i'm the other instance" );
	    return 0;
	  }
	Window win;	
	app.setQuitOnLastWindowClosed(false);
	QApplication::setStyle(new QCleanlooksStyle);
	return app.exec();
}
